package com.jbob.app;

import com.jbob.utils.Utils;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import weka.classifiers.Classifier;
import weka.classifiers.Evaluation;
import weka.classifiers.bayes.NaiveBayes;
import weka.classifiers.trees.J48;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.converters.ConverterUtils.DataSource;

public class main {

	public static final int NB_INSTANCE_TEST = 334;
	private static DataSource source;

	public static void main(String[] args)
	{
		try {
			source = new DataSource("./files/credit-g.arff");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
				
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				MainWindow mw = new MainWindow();
				mw.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
				mw.pack();
			}
		});
	}
	
	public static DataSource getDataSource()
	{
		return source;
	}
}
